import { t } from '@/hooks/web/useI18n';
import { LAYOUT } from '@/router/constant';
import type { AppRouteModule } from '@/router/types';

const roomUse: AppRouteModule = {
  path: 'room',
  name: 'RoomRec',
  component: LAYOUT,
  redirect: '/room/records',
  meta: {
    orderNo: 15,
    icon: 'ion:key-outline',
    title: t('routes.index.room.record'),
  }, 
  children: [
    {
      path: 'records',
      name: 'RoomRecords',
      component: () => import('@/views/room-use-records/index.vue'),
      meta: {
        title: t('routes.index.room.record'),
        hideMenu: true,
      }
    }
  ]
};

export default roomUse;
